.class public final Lcom/wqmobile/sdk/protocol/d;
.super Lcom/wqmobile/sdk/protocol/a;


# static fields
.field private static q:[B

.field private static u:Lcom/wqmobile/sdk/protocol/d;

.field private static synthetic v:[I


# instance fields
.field public h:Lcom/wqmobile/sdk/protocol/b;

.field public i:Lcom/wqmobile/sdk/protocol/a/a;

.field public j:Landroid/os/Handler;

.field private k:Lcom/wqmobile/sdk/protocol/c;

.field private l:Ljava/lang/Boolean;

.field private m:Ljava/lang/String;

.field private n:Ljava/lang/String;

.field private o:Ljava/lang/String;

.field private p:Ljava/lang/String;

.field private r:Landroid/os/Handler;

.field private s:Ljava/util/Timer;

.field private t:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    new-array v0, v0, [B

    sput-object v0, Lcom/wqmobile/sdk/protocol/d;->q:[B

    const/4 v0, 0x0

    sput-object v0, Lcom/wqmobile/sdk/protocol/d;->u:Lcom/wqmobile/sdk/protocol/d;

    return-void
.end method

.method private constructor <init>()V
    .locals 3

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/a;-><init>()V

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->l:Ljava/lang/Boolean;

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    iput-object v2, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->m:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->n:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->p:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->o:Ljava/lang/String;

    iput-object v2, p0, Lcom/wqmobile/sdk/protocol/d;->r:Landroid/os/Handler;

    iput v1, p0, Lcom/wqmobile/sdk/protocol/d;->t:I

    new-instance v0, Lcom/wqmobile/sdk/protocol/h;

    invoke-direct {v0, p0}, Lcom/wqmobile/sdk/protocol/h;-><init>(Lcom/wqmobile/sdk/protocol/d;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/h;->start()V

    invoke-static {p0}, Lcom/wqmobile/sdk/protocol/n;->a(Lcom/wqmobile/sdk/protocol/d;)Lcom/wqmobile/sdk/protocol/n;

    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->a:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    return-void
.end method

.method public static a(Lcom/wqmobile/sdk/protocol/c;)Lcom/wqmobile/sdk/protocol/d;
    .locals 1

    instance-of v0, p0, Lcom/wqmobile/sdk/protocol/c;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/wqmobile/sdk/protocol/d;->u:Lcom/wqmobile/sdk/protocol/d;

    if-nez v0, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/protocol/d;

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/d;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/protocol/d;->u:Lcom/wqmobile/sdk/protocol/d;

    :cond_0
    sget-object v0, Lcom/wqmobile/sdk/protocol/d;->u:Lcom/wqmobile/sdk/protocol/d;

    :goto_0
    return-object v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/d;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->o:Ljava/lang/String;

    return-object v0
.end method

.method private a(Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;I)V
    .locals 2

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/d;->o()Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->j:Landroid/os/Handler;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->j:Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v0

    new-instance v1, Lcom/wqmobile/sdk/protocol/g;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/wqmobile/sdk/protocol/g;-><init>(Lcom/wqmobile/sdk/protocol/d;Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;I)V

    iput-object v1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->j:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/d;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/d;->o:Ljava/lang/String;

    return-void
.end method

.method static synthetic b(Lcom/wqmobile/sdk/protocol/d;)Lcom/wqmobile/sdk/protocol/c;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->k:Lcom/wqmobile/sdk/protocol/c;

    return-object v0
.end method

.method private o()Z
    .locals 2

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x1

    return v0

    :cond_0
    new-instance v0, Ljava/lang/Exception;

    const-string v1, "Call startRequest before this method"

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method private static synthetic p()[I
    .locals 3

    sget-object v0, Lcom/wqmobile/sdk/protocol/d;->v:[I

    if-eqz v0, :cond_0

    :goto_0
    return-object v0

    :cond_0
    invoke-static {}, Lcom/wqmobile/sdk/protocol/b;->values()[Lcom/wqmobile/sdk/protocol/b;

    move-result-object v0

    array-length v0, v0

    new-array v0, v0, [I

    :try_start_0
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->e:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/4 v2, 0x5

    aput v2, v0, v1
    :try_end_0
    .catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_8

    :goto_1
    :try_start_1
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->c:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/4 v2, 0x3

    aput v2, v0, v1
    :try_end_1
    .catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_7

    :goto_2
    :try_start_2
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->f:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/4 v2, 0x6

    aput v2, v0, v1
    :try_end_2
    .catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_6

    :goto_3
    :try_start_3
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->b:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/4 v2, 0x2

    aput v2, v0, v1
    :try_end_3
    .catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_5

    :goto_4
    :try_start_4
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->i:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/16 v2, 0x9

    aput v2, v0, v1
    :try_end_4
    .catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4

    :goto_5
    :try_start_5
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->g:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/4 v2, 0x7

    aput v2, v0, v1
    :try_end_5
    .catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_3

    :goto_6
    :try_start_6
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->h:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/16 v2, 0x8

    aput v2, v0, v1
    :try_end_6
    .catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_2

    :goto_7
    :try_start_7
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->d:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/4 v2, 0x4

    aput v2, v0, v1
    :try_end_7
    .catch Ljava/lang/NoSuchFieldError; {:try_start_7 .. :try_end_7} :catch_1

    :goto_8
    :try_start_8
    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->a:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    const/4 v2, 0x1

    aput v2, v0, v1
    :try_end_8
    .catch Ljava/lang/NoSuchFieldError; {:try_start_8 .. :try_end_8} :catch_0

    :goto_9
    sput-object v0, Lcom/wqmobile/sdk/protocol/d;->v:[I

    goto :goto_0

    :catch_0
    move-exception v1

    goto :goto_9

    :catch_1
    move-exception v1

    goto :goto_8

    :catch_2
    move-exception v1

    goto :goto_7

    :catch_3
    move-exception v1

    goto :goto_6

    :catch_4
    move-exception v1

    goto :goto_5

    :catch_5
    move-exception v1

    goto :goto_4

    :catch_6
    move-exception v1

    goto :goto_3

    :catch_7
    move-exception v1

    goto :goto_2

    :catch_8
    move-exception v1

    goto :goto_1
.end method


# virtual methods
.method public final a(Lcom/wqmobile/sdk/protocol/cmd/WQAckContent;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 3

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->b:Lcom/wqmobile/sdk/protocol/b;

    if-ne v0, v1, :cond_1

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQAckContent;->f()Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQAckContent;->f()Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->b(Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    iget-object v1, v1, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    :goto_0
    const/4 v0, 0x0

    return-object v0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    :cond_1
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->h:Lcom/wqmobile/sdk/protocol/b;

    if-ne v0, v1, :cond_2

    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->i:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQAckContent;->a()B

    move-result v0

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/d;->c:Lcom/wqmobile/sdk/protocol/cmd/d;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/d;->b()B

    move-result v1

    if-ne v0, v1, :cond_0

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQAckContent;->b()[B

    move-result-object v0

    const/4 v1, 0x0

    aget-byte v0, v0, v1

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/c;->h:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/c;->a()B

    move-result v1

    if-ne v0, v1, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/protocol/a/c;

    sget-object v1, Lcom/wqmobile/sdk/protocol/a/d;->a:Lcom/wqmobile/sdk/protocol/a/d;

    invoke-direct {v0, v1}, Lcom/wqmobile/sdk/protocol/a/c;-><init>(Lcom/wqmobile/sdk/protocol/a/d;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->k:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v1, v0}, Lcom/wqmobile/sdk/protocol/c;->a(Lcom/wqmobile/sdk/protocol/a/c;)V

    goto :goto_0
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->f:Lcom/wqmobile/sdk/protocol/b;

    if-eq v0, v1, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->g:Lcom/wqmobile/sdk/protocol/b;

    if-ne v0, v1, :cond_c

    :cond_0
    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->a()[B

    move-result-object v0

    array-length v0, v0

    if-lez v0, :cond_a

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    if-nez v0, :cond_1

    new-instance v0, Lcom/wqmobile/sdk/protocol/a/a;

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/a/a;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    :cond_1
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->b()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g()I

    move-result v2

    invoke-static {}, Lcom/wqmobile/sdk/protocol/q;->a()Lcom/wqmobile/sdk/protocol/q;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->l()Ljava/util/List;

    move-result-object v0

    const-string v3, ""

    if-eqz v0, :cond_d

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_d

    const/4 v3, 0x0

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    :goto_0
    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_7

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->n()Landroid/content/Context;

    move-result-object v3

    invoke-static {v0, v3}, Lcom/wqmobile/sdk/protocol/q;->a(Ljava/lang/String;Landroid/content/Context;)Z

    move-result v3

    if-eqz v3, :cond_7

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    sget-object v4, Lcom/wqmobile/sdk/protocol/a/b;->b:Lcom/wqmobile/sdk/protocol/a/b;

    invoke-virtual {v3, v4}, Lcom/wqmobile/sdk/protocol/a/a;->a(Lcom/wqmobile/sdk/protocol/a/b;)V

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->n()Landroid/content/Context;

    move-result-object v4

    invoke-static {v4, v0}, Lcom/wqmobile/sdk/protocol/q;->a(Landroid/content/Context;Ljava/lang/String;)[B

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/wqmobile/sdk/protocol/a/a;->a([B)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->g()V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->m()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->n()Landroid/content/Context;

    move-result-object v3

    invoke-static {v0, v3}, Lcom/wqmobile/sdk/protocol/q;->a(Ljava/lang/String;Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_3

    :cond_2
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->m()Z

    move-result v0

    if-nez v0, :cond_4

    :cond_3
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    sget-object v2, Lcom/wqmobile/sdk/protocol/a/b;->c:Lcom/wqmobile/sdk/protocol/a/b;

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Lcom/wqmobile/sdk/protocol/a/b;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->n()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v3}, Lcom/wqmobile/sdk/protocol/a/a;->b()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/protocol/q;->a(Landroid/content/Context;Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a([B)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Z)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    monitor-exit v1

    move-object v0, v5

    :goto_1
    return-object v0

    :cond_4
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->b()Ljava/lang/String;

    move-result-object v0

    const-string v3, ""

    if-ne v0, v3, :cond_5

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Z)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    monitor-exit v1

    move-object v0, v5

    goto :goto_1

    :cond_5
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->o()Z

    move-result v0

    if-nez v0, :cond_6

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    sget-object v3, Lcom/wqmobile/sdk/protocol/a/b;->c:Lcom/wqmobile/sdk/protocol/a/b;

    invoke-virtual {v0, v3}, Lcom/wqmobile/sdk/protocol/a/a;->a(Lcom/wqmobile/sdk/protocol/a/b;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    new-array v2, v2, [B

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a([B)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->b()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/g;->a(Ljava/lang/String;)Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;

    move-result-object v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0

    :cond_6
    :try_start_1
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    sget-object v2, Lcom/wqmobile/sdk/protocol/a/b;->d:Lcom/wqmobile/sdk/protocol/a/b;

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Lcom/wqmobile/sdk/protocol/a/b;)V

    new-instance v0, Lcom/wqmobile/sdk/protocol/p;

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v2}, Lcom/wqmobile/sdk/protocol/a/a;->n()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-direct {v0, v2, v3}, Lcom/wqmobile/sdk/protocol/p;-><init>(Ljava/lang/String;Lcom/wqmobile/sdk/protocol/a/a;)V

    invoke-static {p0}, Lcom/wqmobile/sdk/protocol/n;->a(Lcom/wqmobile/sdk/protocol/d;)Lcom/wqmobile/sdk/protocol/n;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/wqmobile/sdk/protocol/n;->a(Lcom/wqmobile/sdk/protocol/p;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    monitor-exit v1

    move-object v0, v5

    goto :goto_1

    :cond_7
    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    const-string v4, ""

    if-eq v3, v4, :cond_8

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_9

    :cond_8
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Z)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    monitor-exit v1

    move-object v0, v5

    goto :goto_1

    :cond_9
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    sget-object v3, Lcom/wqmobile/sdk/protocol/a/b;->b:Lcom/wqmobile/sdk/protocol/a/b;

    invoke-virtual {v0, v3}, Lcom/wqmobile/sdk/protocol/a/a;->a(Lcom/wqmobile/sdk/protocol/a/b;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    new-array v2, v2, [B

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a([B)V

    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    invoke-static {v6}, Lcom/wqmobile/sdk/protocol/g;->a(I)Lcom/wqmobile/sdk/protocol/cmd/WQRDRCVContent;

    move-result-object v0

    goto/16 :goto_1

    :cond_a
    invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->l:Ljava/lang/Boolean;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    monitor-enter v0

    :try_start_2
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    if-nez v1, :cond_b

    new-instance v1, Lcom/wqmobile/sdk/protocol/a/a;

    invoke-direct {v1}, Lcom/wqmobile/sdk/protocol/a/a;-><init>()V

    iput-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    :cond_b
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Z)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    move-object v0, v5

    goto/16 :goto_1

    :catchall_1
    move-exception v1

    monitor-exit v0

    throw v1

    :cond_c
    move-object v0, v5

    goto/16 :goto_1

    :cond_d
    move-object v0, v3

    goto/16 :goto_0
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/cmd/WQEofContent;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 6

    const/4 v5, 0x0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {p1, v1}, Lcom/wqmobile/sdk/protocol/cmd/WQEofContent;->a(Lcom/wqmobile/sdk/protocol/a/a;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/a/a;->q()Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Z)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    monitor-exit v0

    move-object v0, v5

    :goto_0
    return-object v0

    :cond_0
    invoke-static {}, Lcom/wqmobile/sdk/protocol/q;->a()Lcom/wqmobile/sdk/protocol/q;

    move-result-object v1

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->n()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v3}, Lcom/wqmobile/sdk/protocol/a/a;->d()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v4}, Lcom/wqmobile/sdk/protocol/a/a;->c()[B

    move-result-object v4

    invoke-virtual {v1, v2, v3, v4}, Lcom/wqmobile/sdk/protocol/q;->a(Landroid/content/Context;Ljava/lang/String;[B)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/a/a;->g()V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/a/a;->m()Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Z)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_1
    monitor-exit v0

    move-object v0, v5

    goto :goto_0

    :cond_1
    :try_start_1
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/a/a;->a()Lcom/wqmobile/sdk/protocol/a/b;

    move-result-object v1

    sget-object v2, Lcom/wqmobile/sdk/protocol/a/b;->b:Lcom/wqmobile/sdk/protocol/a/b;

    if-ne v1, v2, :cond_3

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/a/a;->o()Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/a/a;->b()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/g;->a(Ljava/lang/String;)Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;

    move-result-object v1

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    sget-object v3, Lcom/wqmobile/sdk/protocol/a/b;->c:Lcom/wqmobile/sdk/protocol/a/b;

    invoke-virtual {v2, v3}, Lcom/wqmobile/sdk/protocol/a/a;->a(Lcom/wqmobile/sdk/protocol/a/b;)V

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const v3, 0xfde8

    new-array v3, v3, [B

    invoke-virtual {v2, v3}, Lcom/wqmobile/sdk/protocol/a/a;->a([B)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    monitor-exit v0

    move-object v0, v1

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    sget-object v2, Lcom/wqmobile/sdk/protocol/a/b;->d:Lcom/wqmobile/sdk/protocol/a/b;

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Lcom/wqmobile/sdk/protocol/a/b;)V

    new-instance v1, Lcom/wqmobile/sdk/protocol/p;

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v2}, Lcom/wqmobile/sdk/protocol/a/a;->n()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-direct {v1, v2, v3}, Lcom/wqmobile/sdk/protocol/p;-><init>(Ljava/lang/String;Lcom/wqmobile/sdk/protocol/a/a;)V

    invoke-static {p0}, Lcom/wqmobile/sdk/protocol/n;->a(Lcom/wqmobile/sdk/protocol/d;)Lcom/wqmobile/sdk/protocol/n;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/wqmobile/sdk/protocol/n;->a(Lcom/wqmobile/sdk/protocol/p;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    :cond_3
    :try_start_2
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/a/a;->a(Z)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    goto :goto_1

    :cond_4
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/a/a;->f()V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    const/4 v1, 0x1

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/g;->a(I)Lcom/wqmobile/sdk/protocol/cmd/WQRDRCVContent;

    move-result-object v1

    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-object v0, v1

    goto/16 :goto_0
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/cmd/WQErrorContent;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 3

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQErrorContent;->a()B

    move-result v0

    const/16 v1, 0x21

    if-ne v0, v1, :cond_1

    :try_start_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->r:Landroid/os/Handler;

    if-nez v0, :cond_0

    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, ""

    invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    new-instance v1, Lcom/wqmobile/sdk/protocol/f;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v1, p0, v0}, Lcom/wqmobile/sdk/protocol/f;-><init>(Lcom/wqmobile/sdk/protocol/d;Landroid/os/Looper;)V

    iput-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->r:Landroid/os/Handler;

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->r:Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->r:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    move-object v0, v2

    :goto_1
    return-object v0

    :cond_1
    move-object v0, v2

    goto :goto_1

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/cmd/WQSendContent;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 4

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/a/a;->i()I

    move-result v0

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQSendContent;->a()I

    move-result v1

    if-ne v0, v1, :cond_1

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQSendContent;->a()I

    move-result v0

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQSendContent;->b()Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    monitor-enter v1

    :try_start_0
    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/d;->i:Lcom/wqmobile/sdk/protocol/a/a;

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQSendContent;->g()[B

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/wqmobile/sdk/protocol/a/a;->b([B)Z

    add-int/lit8 v0, v0, 0x1

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/g;->a(I)Lcom/wqmobile/sdk/protocol/cmd/WQRDRCVContent;

    move-result-object v0

    :goto_0
    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final a(I)V
    .locals 2

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/c;->g:Lcom/wqmobile/sdk/protocol/cmd/c;

    const-string v1, "<?xml version=\"1.0\" encoding=\"utf-8\"?><ViewSettings><Width>320</Width><Height>48</Height><TopLeft-x>0</TopLeft-x><TopLeft-y>0</TopLeft-y></ViewSettings>"

    invoke-direct {p0, v0, v1, p1}, Lcom/wqmobile/sdk/protocol/d;->a(Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;I)V

    return-void
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/a/a;)V
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->k:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/protocol/c;->a(Lcom/wqmobile/sdk/protocol/a/a;)V

    return-void
.end method

.method public final a(Ljava/lang/String;I)V
    .locals 1

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/c;->e:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-direct {p0, v0, p1, p2}, Lcom/wqmobile/sdk/protocol/d;->a(Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;I)V

    return-void
.end method

.method public final a(Ljava/lang/String;Z)V
    .locals 1

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/c;->h:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-static {v0, p1}, Lcom/wqmobile/sdk/protocol/g;->a(Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;)Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/d;->b(Lcom/wqmobile/sdk/protocol/cmd/a;)V

    if-eqz p2, :cond_0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->d()V

    :cond_0
    return-void
.end method

.method public final a(Ljava/lang/String;)Z
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/d;->m:Ljava/lang/String;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->a:Lcom/wqmobile/sdk/protocol/b;

    if-ne v0, v1, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->b:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    new-instance v0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;-><init>()V

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->b(Ljava/lang/String;)V

    invoke-virtual {v0, v5, v4}, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->a(II)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g()V

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/d;->a(Lcom/wqmobile/sdk/protocol/cmd/a;)V

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    iget-object v1, v1, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    const-wide/16 v2, 0x61a8

    invoke-virtual {v1, v2, v3}, Ljava/lang/Object;->wait(J)V

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->e([B)Z

    move-result v0

    if-nez v0, :cond_1

    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->c:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    move v0, v5

    :goto_0
    return v0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    :cond_1
    move v0, v4

    goto :goto_0
.end method

.method public final b(Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 2

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->e:Lcom/wqmobile/sdk/protocol/b;

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    sget-object v0, Lcom/wqmobile/sdk/protocol/d;->q:[B

    monitor-enter v0

    :try_start_0
    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->b()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->p:Ljava/lang/String;

    sget-object v1, Lcom/wqmobile/sdk/protocol/d;->q:[B

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    const/4 v0, 0x0

    return-object v0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public final b(Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/d;->o()Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->c:Lcom/wqmobile/sdk/protocol/b;

    if-ne v0, v1, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->e:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/d;->n:Ljava/lang/String;

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/c;->b:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-static {v0, p1}, Lcom/wqmobile/sdk/protocol/g;->a(Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;)Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;

    move-result-object v0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/d;->a(Lcom/wqmobile/sdk/protocol/cmd/a;)V

    sget-object v0, Lcom/wqmobile/sdk/protocol/d;->q:[B

    monitor-enter v0

    :try_start_0
    sget-object v1, Lcom/wqmobile/sdk/protocol/d;->q:[B

    const-wide/16 v2, 0x61a8

    invoke-virtual {v1, v2, v3}, Ljava/lang/Object;->wait(J)V

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->p:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->i:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->p:Ljava/lang/String;

    :goto_0
    return-object v0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public final b(Lcom/wqmobile/sdk/protocol/c;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/d;->k:Lcom/wqmobile/sdk/protocol/c;

    return-void
.end method

.method public final b(Ljava/lang/String;I)V
    .locals 1

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/c;->f:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-direct {p0, v0, p1, p2}, Lcom/wqmobile/sdk/protocol/d;->a(Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;I)V

    return-void
.end method

.method public final c(Ljava/lang/String;)V
    .locals 4

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->s:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->s:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->s:Ljava/util/Timer;

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v1, Lcom/wqmobile/sdk/protocol/b;->i:Lcom/wqmobile/sdk/protocol/b;

    if-ne v0, v1, :cond_2

    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->h:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/c;->d:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-static {v0, p1}, Lcom/wqmobile/sdk/protocol/g;->a(Lcom/wqmobile/sdk/protocol/cmd/c;Ljava/lang/String;)Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;

    move-result-object v0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/d;->a(Lcom/wqmobile/sdk/protocol/cmd/a;)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    iget v0, p0, Lcom/wqmobile/sdk/protocol/d;->t:I

    const/16 v1, 0xc8

    if-ge v0, v1, :cond_1

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->s:Ljava/util/Timer;

    new-instance v0, Lcom/wqmobile/sdk/protocol/e;

    invoke-direct {v0, p0, p1}, Lcom/wqmobile/sdk/protocol/e;-><init>(Lcom/wqmobile/sdk/protocol/d;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->s:Ljava/util/Timer;

    const-wide/32 v2, 0xc350

    invoke-virtual {v1, v0, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    iget v0, p0, Lcom/wqmobile/sdk/protocol/d;->t:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/wqmobile/sdk/protocol/d;->t:I

    goto :goto_0
.end method

.method protected final e()V
    .locals 1

    invoke-super {p0}, Lcom/wqmobile/sdk/protocol/a;->e()V

    const/4 v0, 0x0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->l:Ljava/lang/Boolean;

    return-void
.end method

.method public final h()Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 1

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->f()V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->c()V

    const/4 v0, 0x1

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/g;->a(I)Lcom/wqmobile/sdk/protocol/cmd/WQRDRCVContent;

    move-result-object v0

    return-object v0
.end method

.method public final i()Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method public final j()V
    .locals 2

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/d;->g()V

    invoke-static {}, Lcom/wqmobile/sdk/protocol/d;->p()[I

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/b;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/wqmobile/sdk/protocol/d;->f:Z

    return-void

    :pswitch_1
    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->i:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    goto :goto_0

    :pswitch_2
    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->a:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    goto :goto_0

    :pswitch_3
    sget-object v0, Lcom/wqmobile/sdk/protocol/b;->c:Lcom/wqmobile/sdk/protocol/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->h:Lcom/wqmobile/sdk/protocol/b;

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_3
        :pswitch_1
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method public final k()Z
    .locals 2

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->b:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->m:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->m:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/d;->a(Ljava/lang/String;)Z

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final l()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->n:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->n:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/d;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public final m()Ljava/lang/Boolean;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->l:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/wqmobile/sdk/protocol/d;->f:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0
.end method

.method public final n()Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->k:Lcom/wqmobile/sdk/protocol/c;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/d;->k:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/c;->b()Landroid/content/Context;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
